const express = require('express');
const path = require('path');
const app = express();

app.use(
  '/static',
  express.static(path.resolve(__dirname, 'dist', 'static'), { maxAge: 30 * 24 * 3600 * 1000 })
)

app.get('*', (req, res) => {
  res.sendFile(path.resolve(__dirname, 'dist', 'index.html'));
})

app.listen(8082)